<?php
defined('IN_PHPCMS') or exit('No permission resources.');
pc_base::load_sys_class('model', '', 0);
/**
 * 后台课程model
 */
class agency_course_source_model extends model {
	public function __construct() {
		$this->db_config = pc_base::load_config('database');
		$this->db_setting = 'default';
		$this->table_name = 'agency_course_source';
		parent::__construct();
	}
	
	/*
	 * 课程关联资源删除绑定关系
	 */
	public function deleteCoursesource($course_id) {
		$where = "course_id in ('$course_id')";
		$result = $this->delete($where);
		return $result;
	}
}